package com.softlook.mt.server.db.internal;

import java.lang.String;
import java.util.Hashtable;
import java.lang.Integer;
import jp.crossfire.framework.database.ICondition;
import jp.crossfire.framework.database.ConditionContainer;
import jp.crossfire.framework.database.Condition;

public class ClientManagerInternal {
	public String getSql(Hashtable input, Integer limit, Integer offset) {
		return null;
	}
	protected ICondition getGetCondition(Hashtable input) {
		// Condition
		ICondition cnd0= new ConditionContainer("AND");
		ICondition cnd1= new Condition("clientid = '$clientid'");
		if(input.get("clientid") != null){
			((Condition)cnd1).getProperties().put("clientid", input.get("clientid"));
		}
		((ConditionContainer)cnd0).addChild(cnd1);
		return cnd0;
	}
	protected ICondition getGetHavingCondition(Hashtable input) {
		// Condition
		return null;
	}
	protected ICondition setGetCondition(Hashtable input) {
		// Condition
		ICondition cnd0= new ConditionContainer("AND");
		ICondition cnd1= new Condition("clientid = '$clientid'");
		if(input.get("clientid") != null){
			((Condition)cnd1).getProperties().put("clientid", input.get("clientid"));
		}
		((ConditionContainer)cnd0).addChild(cnd1);
		return cnd0;
	}
	protected ICondition delGetCondition(Hashtable input) {
		// Condition
		ICondition cnd0= new ConditionContainer("AND");
		ICondition cnd1= new Condition("clientid = '$clientid'");
		if(input.get("clientid") != null){
			((Condition)cnd1).getProperties().put("clientid", input.get("clientid"));
		}
		((ConditionContainer)cnd0).addChild(cnd1);
		return cnd0;
	}
}
